package com.silp.baitap1;

public class hinhtamgiac {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		int a=7;
		
		for (int i = 0; i < a; i++) {
			for (int j = 0; j < i; j++) {
				if ((i==0)||(j==0)||(i==a-1)){
					System.out.print("x");
				}
				else
					System.out.print(" ");
				
			}
			System.out.println("x");	
		}
		

	}

}
